<?php if(!defined('IN_DISCUZ')) exit('Access Denied'); hookscriptoutput('post');?><?php include template('common/header'); ?><div class="z_current">
    <div class="z_dqwz">
        <a>首页</a><a>></a><a>讨论专区</a><a>></a><a>发帖</a>
    </div>
</div>

<div class="kj_con">
    <form method="post" autocomplete="off" id="postform"
    <?php if($_GET['action'] == 'newthread') { ?>action="forum.php?mod=post&amp;action=<?php if($special != 2) { ?>newthread<?php } else { ?>newtrade<?php } ?>&amp;fid=<?php echo $_G['fid'];?>&amp;extra=<?php echo $extra;?>&amp;topicsubmit=yes"
    <?php } elseif($_GET['action'] == 'reply') { ?>action="forum.php?mod=post&amp;action=reply&amp;fid=<?php echo $_G['fid'];?>&amp;tid=<?php echo $_G['tid'];?>&amp;extra=<?php echo $extra;?>&amp;replysubmit=yes"
    <?php } elseif($_GET['action'] == 'edit') { ?>action="forum.php?mod=post&amp;action=edit&amp;extra=<?php echo $extra;?>&amp;editsubmit=yes" <?php echo $enctype;?>
    <?php } ?>
    onsubmit="return validate(this)">
    <input type="hidden" name="formhash" id="formhash" value="<?php echo FORMHASH;?>" />
    <input type="hidden" name="posttime" id="posttime" value="<?php echo TIMESTAMP;?>" />
    <?php if($_GET['action'] == 'edit') { ?>
    <input type="hidden" name="delattachop" id="delattachop" value="0" />
    <?php } ?>
    <?php if(!empty($_GET['modthreadkey'])) { ?><input type="hidden" name="modthreadkey" id="modthreadkey" value="<?php echo $_GET['modthreadkey'];?>" /><?php } ?>
    <input type="hidden" name="wysiwyg" id="<?php echo $editorid;?>_mode" value="<?php echo $editormode;?>" />
    <?php if($_GET['action'] == 'reply') { ?>
    <input type="hidden" name="noticeauthor" value="<?php echo $noticeauthor;?>" />
    <input type="hidden" name="noticetrimstr" value="<?php echo $noticetrimstr;?>" />
    <input type="hidden" name="noticeauthormsg" value="<?php echo $noticeauthormsg;?>" />
    <?php if($reppid) { ?>
    <input type="hidden" name="reppid" value="<?php echo $reppid;?>" />
    <?php } ?>
    <?php if($_GET['reppost']) { ?>
    <input type="hidden" name="reppost" value="<?php echo $_GET['reppost'];?>" />
    <?php } elseif($_GET['repquote']) { ?>
    <input type="hidden" name="reppost" value="<?php echo $_GET['repquote'];?>" />
    <?php } ?>
    <?php } ?>
    <?php if($_GET['action'] == 'edit') { ?>
    <input type="hidden" name="fid" id="fid" value="<?php echo $_G['fid'];?>" />
    <input type="hidden" name="tid" value="<?php echo $_G['tid'];?>" />
    <input type="hidden" name="pid" value="<?php echo $pid;?>" />
    <input type="hidden" name="page" value="<?php echo $_GET['page'];?>" />
    <?php } ?>
    <?php if($special) { ?>
    <input type="hidden" name="special" value="<?php echo $special;?>" />
    <?php } ?>
    <?php if($specialextra) { ?>
    <input type="hidden" name="specialextra" value="<?php echo $specialextra;?>" />
    <?php } ?>
    <div class="kj_right" style="height:auto; width:998px; padding-bottom:20px;">
        <div class="kj_ss">
            <span>标题：</span>
            <input name="subject" type="text"  class="kj_text" style="width:180px;"/>
            <span>栏目：</span>
            <select name="" class="kj_text" style="width:180px;">
                <option>请选择</option>
            </select>
        </div>
        <div class="kj_ss" style="height:auto">
            <span>内容：</span>
            <textarea name="message" class="kj_text" style="width:803px; height:160px;"></textarea>
        </div>
        <div class="kj_ss" style="height:30px; margin-top:30px;">
            <input type="hidden" name="seccodeverify" value="" />
            <input name="input" type="submit"  value="发表" class="tz_ft_nav" style="margin-top:0px; margin-left:380px;"/>
            <input type="checkbox" name="readperm" id="checkbox" style="margin-top:5px; float:left; margin-left:10px;"/>
            <span style="line-height:30px;">只给注册用户查看</span>
        </div>
    </div>
    </form>
</div><?php include template('common/footer'); ?>